package com.base;
//定义使用的常量
public enum Constants {

    WechatFunction(0,"WechatFunction"),
    //信息绑定
    WechatBind(1,"WechatBind"),
    //信息查询
    WechatLogintoken(2,"WechatLogintoken"),

    WechatJokes(3,"WechatJokes"),
    //调用api获取资源的内容
    WechatFreeApiTu(4,"wechatFreeApiTu"),

    //公众号服务
    WechatServer(5,"WechatServer"),

    WechatRiddle(6,"wechatRiddle"),

    WechatQpdh(7,"wechatQpdh"),

    // 每个枚举实例可关联附加信息（通过构造方法初始化）
    Description(1, "description"),
    Favicon(2, "favicon");

    // 附加成员变量
    private final int code;
    private final String value;

    // 私有构造方法（枚举构造器必须私有）
    Constants(int code, String value) {
        this.code = code;
        this.value = value;
    }

    // 提供 getter 方法访问附加信息
    public int getCode() { return code; }
    public String getValue() { return value; }






}
